<!-- eslint-disable vue/no-mutating-props -->
<!--
 * @Author: C.
 * @Date: 2023-12-12 18:38:19
-->
<template>
  <ImgUpload :model-value="modelValue" v-bind="$attrs" action="#" />
</template>
<script lang="ts" setup>
// ----------------------------- 第三方引入 -----------------------------
import { computed } from 'vue'

// ----------------------------- hooks -----------------------------

// ----------------------------- 组件 -----------------------------
import ImgUpload from '@tuniao/tnui-vue3-uniapp/components/image-upload/src/image-upload.vue'
// ----------------------------- 其他引入 -----------------------------

const props = defineProps({
  modelValue: {
    type: [String, Number, Boolean, Array],
  },
})
const emits = defineEmits(['update:modelValue'])
//----------------------------- 变量声明区 -----------------------------
// ----------------------------- hooks使用区 -----------------------------

// ----------------------------- 钩子函数区 -----------------------------

//  ----------------------------- 自定义方法区 -----------------------------
function change(value: any) {
  emits('update:modelValue', value)
}
</script>
<style lang="less" scoped></style>
